﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using nhannguyentn.Models;

namespace nhannguyentn.Controllers
{
    public class ProfileController : Controller
    {
        //
        // GET: /Profile/

        public ActionResult Index()
        {
            return View();
        }

        public object GetProfile()
        {
            var profile = ProfileModel.Objects.OrderBy(x=>x.Order).ToList();
            return Json(profile,JsonRequestBehavior.AllowGet);
        }

    }
}
